package com.sky.service;

import com.sky.entity.Category;
import com.sky.result.PageResult;
import com.sky.result.Result;

import java.util.List;


public interface CategoryService {

    //分页查询
    PageResult page(String name, int page, int pageSize, Integer type);

    //修改分类
    Integer updateCate(Category category);

    //启用、禁用分类
    void upstatus(Integer status,Long id);

    //新增分类
    Integer save(Category category);

    //根据id删除分类
    Integer remove(Long id);

    //根据类型查询分类
    List<Category> getByType(Integer type);

    List<Category> getAll();

}
